//
//  LoginManager.h
//  dataGathering
//
//  Created by macmini on 15/1/29.
//  Copyright (c) 2015年 shuili. All rights reserved.
//

#import <Foundation/Foundation.h>

#define ROOT_URL @"http://218.94.6.92:8033/slxc.server/"

#define URL_LOGIN ROOT_URL@"mobile/login"
#define URL_GETLAYERLIST ROOT_URL@"mobile/featurelayers/get"

typedef NS_ENUM(NSInteger, LoginResult) {
    LoginResultServerError = 0,
    LoginResultWrongInfo = 1,
    LoginResultSuccess = 2
};

@interface LoginManager : NSObject

+(LoginResult)loginUsingUsername:(NSString*)name andPassword:(NSString*)pwd;

@end
